home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_06 / williams / mpydefs.h < prev   
Encoding:
C/C++ Source or Header  |  1995-03-22  |  1.1 KB  |  46 lines

  1. /* ============ */
  2. /* mpydefs.h    */
  3. /* ============ */
  4. /* ==================================================================== */
  5. /*    D E F I N I T I O N S  F O R  M A T M P Y  O P T I O N S     */
  6. /* ==================================================================== */
  7. # if defined(__MPYDEFS_H)
  8. #    /* do nothing */
  9. # else
  10. /* --------------- */
  11. /* PRODUCT OPTIONS */
  12. /* --------------- */
  13.  
  14. #define    AB    0         /* A * B   */
  15. #define    ATB    1        /* A' * B  */
  16. #define    ABT    2        /* A * B'  */
  17. #define    ATBT    3        /* A' * B' */
  18.  
  19. /* -------------- */
  20. /* RESULT OPTIONS */
  21. /* -------------- */
  22.  
  23. #define    P     0        /* C =  Product */
  24. #define    MP    -2        /* C = -Product */
  25. #define    CPP     1        /* C += Product */
  26. #define    CMP     -1              /* C -= Product */
  27.  
  28. /* ------------------- */
  29. /* FUNCTION PROTOTYPES */
  30. /* ------------------- */
  31. # undef F
  32. # if defined(__STDC__) || defined(__PROTO__)
  33. #    define  F( P )  P
  34. # else
  35. #    define  F( P )  ()
  36. # endif
  37.  
  38. /* INDENT OFF */
  39. extern    void    matmpy F((double *, int, int, double *, int, int,
  40.               double *, int, int));
  41. # undef F
  42. /* INDENT ON */
  43. # endif                /* __MPYDEFS_H */
  44.  
  45.  
  46.